import request from '@/utils/request'



//  新建检验员分配
export function addQmsbaseipqcinspector(data) {
    return request({
        url: '/api/BaseData/qmsbaseipqcinspector',
        method: 'POST',
        data:data
    })
}


//  修改检验员分配
export function saveQmsbaseipqcinspector(data) {
    return request({
        url: '/api/BaseData/qmsbaseipqcinspector/'+data.id,
        method: 'PUT',
        data:data
    })
}

//  获取检验员分配列表
export function getQmsbaseipqcinspectorList(data) {
    return request({
        url: '/api/BaseData/qmsbaseipqcinspector',
        method: 'GET',
        data
    })
}


// 批量删除检验员分配
export function batchRemove(data) {
    return request({
        url: '/api/BaseData/qmsbaseipqcinspector/batchRemove',
        method: 'POST',
        data
    })
}

// 删除检验员分配
export function removeQmsbaseipqcinspector(id) {
   return request({
        url: '/api/BaseData/qmsbaseipqcinspector/'+id,
        method: 'DELETE',
    })
}

//获取检验员分配详情
export function getQmsbaseipqcinspector(id) {
    return request({
        url: '/api/BaseData/qmsbaseipqcinspector/'+id,
        method: 'GET',
    })
}

//导出检验员分配
export function exportQmsbaseipqcinspector(data) {
    return request({
        url: '/api/BaseData/qmsbaseipqcinspector/Actions/Export',
        method: 'GET',
        data:data
    })
}